package com.egao.common.module.outer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 校外宣讲会实体类
 * @author pyx
 */
@Data
@ApiModel(description = "校外宣讲会")
@TableName("outer_preach")
public class OuterPreach implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("校外宣讲会")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("主办方")
    private String organizer;

    @ApiModelProperty("所办学校编号")
    private Integer schoolId;

    @ApiModelProperty("所办学校名称")
    private String schoolName;

    @ApiModelProperty("点击量")
    private Integer hits;

    @ApiModelProperty("举办时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date holdTime;

    @ApiModelProperty("举办地点")
    private String holdAddress;

    @ApiModelProperty("招聘岗位及要求、简历投递方式")
    private String content;

    @ApiModelProperty("发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("是否删除 0否 1是")
    @TableLogic
    private Integer deleted;

}
